package com.xinbochuang.machine.admin.domain.macRoom;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinbochuang.machine.common.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author 杜文博
 * @date 2020-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("EQUIPMENT")
public class Equipment extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("UUID")
    private String uuid;

    /**
     * 设备名称
     */
    @TableField("EQU_NAME")
    private String equName;

    /**
     * 设备状态
     */
    @TableField("EQU_STATE")
    private String equState;

    /**
     * 设备高度
     */
    @TableField("EQU_HEIGHT")
    private String equHeight;

    /**
     * EQU_CABINET表关联Id
     */
    @TableField("CABINET_ID")
    private String cabinetId;

    /**
     * U位表关联Id
     */
    @TableField("ULOCATION_ID")
    private String ulocationId;

    /**
     * 删除标志
     */
    @TableField("DELETE_FLAG")
    private Integer deleteFlag;

    @TableField("USER_ID")
    private String userId;

    @TableField("USER_NAME")
    private String userName;

    /**
     * 利旧/报废状态（0 可申请 1 已申请 2 已利旧  3 已报废）
     */
    @TableField("SCRAP_STATUS")
    private String scrapStatus;

    @TableField("HEIGHT")
    private int height;
    /**
     * 设备详情
     */
    @TableField(exist = false)
    private EquipmentDetail detail;

    /**
     * 部门id
     */
    @TableField("DEPT_ID")
    private Integer deptId;

    /**
     * 部门名称
     */
    @TableField("DEPT_NAME")
    private String deptName;

    @TableField("IMGS")
    private String imgs;

    @TableField("SCCJ")
    private String sccj;

    @TableField("ip")
    private String ip;
}
